<?php
/**
 * @package Control
 * @access  public
 * @filesource
 */

class Control {

    public static function load($objeto, $parametros) {
        $obj_vars = $objeto->get_object_vars();
        $keys     = array_keys($obj_vars);

        foreach ($keys as $key) {
            if (isset($parametros[$key])) {
                $objeto->set($key, $parametros[$key]);
            }
        }
    }
}
?>
